<?php

class Application_Form_Search extends Zend_Form
{

    public function init()
    {
        $this->setName('form_search');
        
        $Search =  new Zend_Form_Element_Text('Search');
        $Search->setRequired(true)
                ->addValidator('NotEmpty')
                ->addFilter('StringTrim')
                ->addFilter('StripTags');
        
        $Submit = new Zend_Form_Element_Submit('submit');
        $Submit->setLabel('Отправить');
        
        $this->addElements(array($Search,$Submit));
    }


}

